﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="Theme/Css/CNframe.css" />
    <script type="text/javascript" src="Scripts/jquery-2.0.3.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#Button1").click(function () {
                var postData = '{"ID":0,"Type":"","Topic":"' + $("#inputtitol").val() + '","Position":"' + $('input:radio[name="radio1"]:checked').val() + '","People":"' + $("#inputadult").val() + '","Mail":"' + $("#inputmail").val() + '","Phone":"' + $("#inputphone").val() + '","Website":"' + $("#inputweb").val() + '","Words":"' + $("#t_Content").val() + '"}';


                $.ajax({
                    //方法所在页面和方法名   
                    url: "BlueHomeHandler.ashx?method=Savenote&postData=" + postData,
                    contentType: "application/json",
                    dataType: "json",
                    success: function (data) {
                        if (data.success == true)
                            alert("保存成功");
                        return true;
                    },
                    error: function (err) {
                        alert(err);
                        return false;
                    }
                });
            });

        });
    </script>
</head>
<body>
    <div class="CNright">

        <div class="CNaddress ">
            您的位置： <a href="/">首页</a> &gt; <a href="/aboutus">关于我们</a> &gt; 
    客户留言
        </div>
        <div class="CNcontent">
            <table width="100%" border="0" cellspacing="15" cellpadding="5">
                <tbody>
                    <tr>
                        <td width="25%" align="right">
                            <div style="width: 170px;"></div>
                            留言主题：<span class="red">*</span></td>
                        <td>
                            <input name="inputtitol" type="text" id="inputtitol" class="text2" />
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="right">身份：</td>
                        <td>
                            <table id="table1" border="0" style="font-size: 12px; width: 200px;">
                                <tbody>
                                    <tr>
                                        <td>
                                            <input id="input2" type="radio" name="radio1" value="企业" checked="checked"></td>
                                        <td>
                                            <input id="input3" type="radio" name="radio1" value="个人"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="right">留言者：<span class="red">*</span></td>
                        <td>
                            <input name="inputadult" type="text" maxlength="40" id="inputadult" class="text2">
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="right">电子邮箱：<span class="red">*</span></td>
                        <td>
                            <input name="inputmail" type="text" maxlength="50" id="inputmail" class="text2">
                    </tr>
                    <tr>
                        <td width="25%" align="right">联系电话：<span class="red">*</span></td>
                        <td>
                            <input name="inputphone" type="text" maxlength="50" id="inputphone" class="text2">
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="right">你的网站：</td>
                        <td>
                            <input name="inputweb" type="text" value="http://" maxlength="50" id="inputweb" class="text2"></td>
                    </tr>
                    <tr>
                        <td width="25%" align="right">留言内容：<span class="red">*</span></td>
                        <td>
                            <textarea name="t_Content" rows="10" cols="20" id="t_Content" class="text4" style="width: 300px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="right">
                            <button type="button" id="Button1" onclick="">提交</button>
                        </td>
                        <td colspan="2">
                            <button type="button" id="butdelete" onclick="">取消</button>
                            <div id="ctl00_MainContent_MainPlace_NoteBook1_UpdateProgress1" style="display: none;">
                                <p style="color: Red;">留言提交中...</p>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
</body>
</html>
